package com.im.partchat.http.api;

import com.im.partchat.bean.main.MainNewData;
import com.im.partchat.bean.reponsed.BaseResponse;
import com.im.partchat.bean.request.RequestBean;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * Created by flyou on 2017/6/30.
 * VersionCode: 1
 * Desc:
 */

public interface NewsApi {
    @POST("website/{path}/list")
    Observable<BaseResponse<List<Object>>> getNews(@Body RequestBean<String> object, @Path("path") String path);

    @POST("website/{path}/list")
    Observable<BaseResponse <MainNewData>> getMainNew(@Body RequestBean<String> object, @Path("path") String path);
}
